package com.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("major")
public class Major {

    private static final long serialVersionUID = 1L;

    //专业id
    @TableId(type = IdType.AUTO)
    private Integer majorId;

    //专业名称
    private String majorName;

    //学院id
    private Integer academyId;
}
